import 'package:flutter/material.dart';
import 'package:yp/config/style.dart';

final ThemeData ypThemeData = ThemeData.light().copyWith(
  // Color类型，分隔符(Dividers)和弹窗分隔符(PopupMenuDividers)的颜色，也用于ListTiles和DataTables的行之间。要创建使用这种颜色的合适的边界，请考虑
  dividerColor: Color(0xffDCDCDC),
  appBarTheme: AppBarTheme(
      brightness: Brightness.light,
      iconTheme: IconThemeData(color: EsColors.White),
      elevation: 0.5,
      textTheme: TextTheme(
          // ignore: deprecated_member_use
          headline1: TextStyle(
              fontSize: EsSizes.MD,
              color: EsColors.White,
              fontWeight: EsFontWeights.Medium))),
  inputDecorationTheme: InputDecorationTheme(
    // errorBorder: ,
    filled: true,
    fillColor: Color(0xfff8f8fa),
    focusedBorder: OutlineInputBorder(
      // borderSide: BorderSide(
      //   color: EsColors.Primary.withOpacity(0.6),
      //   width: 0.5,
      // ),
      borderSide: BorderSide.none,
      borderRadius: const BorderRadius.all(
        Radius.circular(6.0),
      ),
    ),
    border: const OutlineInputBorder(
      // borderSide: BorderSide(
      //   color: Color(0xffd6d6d6),
      //   width: 0.5,
      // ),
      gapPadding: 0,
      borderRadius: BorderRadius.all(
        Radius.circular(6.0),
      ),
    ),
    disabledBorder: const OutlineInputBorder(
      borderSide: BorderSide.none,
      gapPadding: 0,
      borderRadius: BorderRadius.all(
        Radius.circular(6.0),
      ),
    ),
    enabledBorder: const OutlineInputBorder(
      borderSide: BorderSide.none,
      gapPadding: 0,
      borderRadius: BorderRadius.all(
        Radius.circular(6.0),
      ),
    ),
    contentPadding: EdgeInsets.fromLTRB(16, 12, 12, 10),
    hintStyle: TextStyle(fontSize: EsSizes.SM, color: Color(0xffB7BDD2)),
  ),
  dividerTheme: ThemeData.light().dividerTheme.copyWith(
        color: Color(0xFFE9EBEE),
      ),
);
